from django.db import models

# Create your models here.
class Registration(models.Model):
    # This field is required.
    name = models.CharField(max_length = '20')
    gender = models.CharField(max_length = '8')
    phone  = models.CharField(max_length = '16')
    email = models.EmailField()
    org = models.CharField(max_length = '20')
    department = models.CharField(max_length = '20')
    status = models.CharField(max_length = '8')

    def __unicode__(self):
        #return '(name=%s, phone=%s, email=%s)' % (self.name, self.phone, self.email)  
        return '(%s %s)' % (self.name, self.email)